package com.agger.eurekaclientmanagerservice.model;

import lombok.Builder;
import lombok.Data;

/**
 * @classname: ResultVO
 * @description: 返回对象
 * @author chenhx
 * @date 2020-04-22 12:09:38
 */
@Data
@Builder
public class ResultVO {

    private String code = "FAIL";
    private String msg;
    private Object data;

    public static ResultVO SUCCESS(){
        return ResultVO.builder().build();
    }
    public static ResultVO SUCCESS(Object data){
        return ResultVO.builder().data(data).build();
    }
    public static ResultVO msg(String msg){
        return ResultVO.builder().msg(msg).build();
    }

}
